
#include "CSettingStatu.h"
#include "NotifyEvent.h"
#include "CGUIButton.h"

CSettingStatu::~CSettingStatu(void)
{
}

CSettingStatu::CSettingStatu(WCHAR * name):CGUIWinControl(name)
{

}
void  CSettingStatu::EnterStatu()
{
  OBJMGR.Parse(NULL,L"setting.xml");

  CGUIButton *p=(CGUIButton *)OBJMGR.GetGUIControl(L"setting_btn_bt");
  if (p)
	  ON_CLICK(p, (NotifyFun)&CSettingStatu::OnButtonPlay);

}
void  CSettingStatu::ExitStatu()
{

	GUI.DelAllCtrl();
	OBJMGR.RemoveAll();

}

void  CSettingStatu::OnButtonPlay()
{
    ExitStatu();
	STATUSMGR.ChangState(L"mainhome");
}